//
//  DBbase.h
//  edu
//
//  Created by baobaodp on 13-9-28.
//  Copyright (c) 2013年 baobaodp. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "sqlite3.h"

@interface DBbase : NSObject

extern DBbase *dBbase;

extern id getColumnString(sqlite3_stmt *statement, int colIdx);
extern NSMutableArray* getDbList(const char* sql);
extern NSMutableArray* getDbRecords(const char* sql , NSString* tableName , NSArray* keyNames);
extern int executeDbUpdate(const char* sql);

-(id)initWithDBName:(NSString *) name;
@property (nonatomic ) sqlite3 *database;

@end
